package com.eshang.test.swagger.controller;

import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("controller")
public class HelloSwaggerController {
	@ApiOperation("输出一个hello")      //给方法加上注释
	@GetMapping("hello")
	public String hello(@ApiParam("给参数的备注")String param){
		return "hello";
	}
}
